package com.Mt.Controller;

import com.Mt.Dto.Dto;
import com.Mt.Service.Mt_CommodityService;
import com.Mt.Utils.DtoUtil;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("Commodity")
@RestController
public class Mt_CommodityController {

    @Reference
    private Mt_CommodityService mt_commodityService;

    @GetMapping("all")
    public Dto all(){


        return DtoUtil.returnSuccessData(mt_commodityService.all());
    }

}
